#
# Copyright 2024 The Kumo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

find_package(KTest REQUIRED)

kmcmake_cc_test(
        NAME builder_test
        MODULE base
        SOURCES builder_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME check_label_name_test
        MODULE base
        SOURCES check_label_name_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME check_metric_name_test
        MODULE base
        SOURCES check_metric_name_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME counter_test
        MODULE base
        SOURCES counter_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME family_test
        MODULE base
        SOURCES family_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME gauge_test
        MODULE base
        SOURCES gauge_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME histogram_test
        MODULE base
        SOURCES histogram_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME registry_test
        MODULE base
        SOURCES registry_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME serializer_test
        MODULE base
        SOURCES serializer_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME summary_test
        MODULE base
        SOURCES summary_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME text_serializer_test
        MODULE base
        SOURCES text_serializer_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME utils_test
        MODULE base
        SOURCES utils_test.cc
        LINKS
        prometheus::prometheus_static
        KTest::ktest
        KTest::kmock
        KTest::ktest_main
        ${KMCMAKE_DEPS_LINK}
)
